﻿using Newtonsoft.Json;

namespace UmbracoExtending.Dealer.Model.District
{
    /// <summary>
    /// 行政区域
    /// </summary>
    public class DistrictSimple
    {
        /// <summary>
        /// 行政区域编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 行政区域名称名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 重载输出字符串方法
        /// </summary>
        /// <returns>返回JSON类型字符串</returns>
        public override string ToString()
        {
            return JsonConvert.SerializeObject(this);
        }
    }
}
